home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
system
/
csh4.zip
/
SAVESTR.C
< prev
next >
Wrap
Text File
|
1985-09-03
|
243b
|
14 lines
#define NULL (void *)0
char *
savestr(s)
register char *s;
{
register char *r,*malloc();
/* squirrel away matched file name */
if (NULL == (r = malloc(strlen(s)+1)))
abort();
strcpy(r,s);
r[strlen(s)] = '\0';
return r;
}